package com.mxpio.erp.autoconfigure.hr;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import com.mxpio.erp.common.Constant;
import com.mxpio.erp.common.vo.ModuleVO;
import com.mxpio.erp.hr.HrConfiguration;

import lombok.extern.slf4j.Slf4j;

@Configuration
@ConditionalOnClass(HrConfiguration.class)
@Import(HrConfiguration.class)
@Slf4j
public class HrAutoConfiguration {

	public HrAutoConfiguration() {
		log.info("[AutoConfiguration==>]:ERP -- Hr Module Loading");
		
		Constant.addModule(new ModuleVO("Hr", "人力模块"));
	}
}
